package cn.java86.test;

import cn.java86.util.MybatisUtil;
import cn.java86.dao.StudentDao;
import org.apache.ibatis.session.SqlSession;

/**
 * @author oldliu
 * @since 1.0
 */
public class REtPass {
    public static void main(String[] args) {
        SqlSession s= MybatisUtil.get();
        StudentDao studentDao = s.getMapper(StudentDao.class);
        studentDao.updatePass(1L,"abc123");

        s.commit();
        MybatisUtil.close(s);
    }
}
